package sugarbind_input

class MethodController {

    def scaffold = true
	
	def findMethods = {
		println("findMethods params : " +params)
			
		def methods = Method.listMethods()
		def selected


		try
		{
			selected = Method.get(params.method)
		}
		catch(Exception ex)
		{
			println(ex.getMessage())
		}
		println(methods)
		println(selected)
		
		render(template: 'ddlMethods', model:  [methods : methods, selected:selected])
	  }
}
